projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c51343
)
Fix dolist-with-progress-reporter behaviour
author
Philip Kaludercic
<philipk@posteo.net>
Mon, 12 Jul 2021 15:26:43 +0000
(17:26 +0200)
committer
Philip Kaludercic
<philipk@posteo.net>
Sun, 19 Sep 2021 23:56:07 +0000
(
01:56
+0200)
* subr.el (dolist-with-progress-reporter): Use the length of list
argument as maximal value the reporter with reach
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 5fac316e379b3b03c094d5763caf1c60b891e8ed..6bd9a018eb03f4617f933601a685986d51322a78 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-5995,7
+5995,7
@@
print the reporter message followed by the word \"done\".
(,count 0)
(,list ,(cadr spec)))
(when (stringp ,prep)
- (setq ,prep (make-progress-reporter ,prep 0 (
1- (length ,list)
))))
+ (setq ,prep (make-progress-reporter ,prep 0 (
length ,list
))))
(dolist (,(car spec) ,list)
,@body
(progress-reporter-update ,prep (setq ,count (1+ ,count))))